{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}

<div class="main-div">
  <form action="ceping.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label">题目:</td>
        <td><input type="text" name="question" size="40" value="{$question.question}"/>
        {$lang.require_field}</td>
      </tr>
      <tr>
        <td class="label">选择为“是”时得分:</td>
        <td><input type="text" name="point_yes" size="40" value="{$question.point_yes}"/>
        {$lang.require_field}</td>
      </tr>
      <tr>
        <td class="label">选择为“否”时得分:</td>
        <td><input type="text" name="point_no" size="40" value="{$question.point_no}"/>
        {$lang.require_field}</td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="id" value="{$question.question_id}" />
          <input type="hidden" name="exam_id" value="{$exam_id}" />
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="hidden" name="act" value="{$act}" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">


{literal}

onload = function() {
	  document.forms['theForm'].elements['question'].focus();
	  startCheckOrder();
	}

	function validate()
	{
	  var validator = new Validator('theForm');
	  validator.required('question', '题目不能为空');
	  validator.required('point_yes', '得分不能为空');
	  validator.required('point_no', '得分不能为空');

	  return validator.passed();
	}

{/literal}  

</script>
{include file="pagefooter.htm"}